package cn.com.headfree.call;

import javax.servlet.http.HttpServletRequest;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.gta.edu.sdk.common.dto.ResultData;

import cn.com.headfree.call.callback.DictionaryServerCallback;

@FeignClient(value="comm-dictionary-server",fallback=DictionaryServerCallback.class)
@Service("dictionaryServerCall")
public interface IDictionaryServerCall {

	@RequestMapping(value="/comm-dictionary-server/dictionary/findDictionaryByParentValue",method=RequestMethod.GET)
	public ResultData findDictionaryByParentValue(@RequestParam("request") HttpServletRequest request,@RequestParam("sysCode") String sysCode,@RequestParam("parentValue") String parentValue);
}
